/**
 * 
 */
package com.clases;


import android.os.AsyncTask;
import com.callbacks.Callbacks.ICompleted;
import com.soap.Soap_Imagenes;


/**
 * @author Chris
 * 
 */
public class Imagen extends AsyncTask<String, String, Imagen[]> {

    private ICompleted callbackImagen;

    private int IDImagen;

    private String Path;

    public ICompleted getCallbackImagen() {

        return this.callbackImagen;
    }

    public int getIDImagen() {

        return IDImagen;
    }

    public String getPath() {

        return this.Path;
    }

    public void setCallbackImagen(ICompleted callbackImagen) {

        this.callbackImagen = callbackImagen;
    }

    public void setIDImagen(int iDImagen) {

        this.IDImagen = iDImagen;
    }

    public void setPath(String path) {

        this.Path = path;
    }

    /*
     * (non-Javadoc)
     * @see android.os.AsyncTask#doInBackground(java.lang.Object[])
     */
    @Override
    protected Imagen[] doInBackground(String... param) {

        return new Soap_Imagenes().getImagenes(this.IDImagen);
    }

    @Override
    protected void onPostExecute(Imagen[] result) {

        if (callbackImagen != null)
            callbackImagen.Completed(result);
    }

    @Override
    protected void onPreExecute() {

        // TODO Auto-generated method stub
        super.onPreExecute();
    }
}
